<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <meta name="layout" content="blog">
  <title>${post.title}</title>
</head>
<body>
<gp:secureLink controller="post" action="edit" id="${post.id}">
  Edit this post
</gp:secureLink>

<h2>${post.title}</h2>
<p>${post.teaser}</p>
<div>${post.content}</div>
<g:link controller="comment" action="edit" params="[postId:post.id]">
  Comment on this article
</g:link>

<g:each in="${post.comments}" var="comment">
  <div class="comment">
    <p>${comment.comment}</p>
    <p>Made by: ${comment.who.name} on <g:formatDate format="dd-MMM-yyyy">${comment.dateCreated}</g:formatDate></p>
  </div>
</g:each>
</body>
</html>